cmake_minimum_required(VERSION 3.10)

project(server_segmentation LANGUAGES CXX)

#设置最小的C++版本
set(CMAKE_CXX_STANDARD 14)


#读取所有的源文件
file(GLOB SOURCES "src/*.cc")

#引入boost库
set(BOOST_ROOT "/usr/local/hslDir/mylib/boost")
find_package(Boost REQUIRED COMPONENTS system)


add_executable(server_segmentation main.cc ${SOURCES} )

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
target_include_directories(server_segmentation PUBLIC ${Boost_INCLUDE_DIRS})
target_link_libraries(server_segmentation PUBLIC ${Boost_LIBRARIES})
